from django.db import models


class Choice(models.Model):
    choice_text = models.CharField(max_length=200, blank=True, null=True)
    votes = models.IntegerField(blank=True, null=True)

    def __str__(self):
        return self.choice_text

    class Meta:
        managed = False
        db_table = 'choice'


class Question(models.Model):
    question_text = models.CharField(max_length=200, blank=True, null=True)
    pub_date = models.DateTimeField(blank=True, null=True)

    def __str__(self):
        return self.question_text

    class Meta:
        managed = False
        db_table = 'question'
